home *** CD-ROM | disk | FTP | other *** search
/ SGI Enlighten DSM 1.1 / SGI EnlightenDSM 1.1.iso / sco5x / events / policy / restart.sh < prev   
Linux/UNIX/POSIX Shell Script  |  1998-06-30  |  291b  |  15 lines

  1. #!/bin/sh
  2. #
  3. #  Copyright (c) 1990-1998 Enlighten Software Solutions, Inc.
  4. #
  5. LOG=$ENLIGHTEN/agent/policy/$1.log
  6. echo $* >> $LOG
  7. case $4 in
  8.    NJ | died ) date >>$LOG  
  9.        echo " " >>$LOG 
  10.        $1 & 
  11.        ;;
  12. # ignore new dbase's starting. Just restart one when it dies.
  13.     *) ;;
  14. esac
  15.